﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyAlbum.Services;

namespace UnitTests
{
    class TestUser:IUser
    {
        #region IUser Members
        private IUser user;
        public void SetUser(IUser user)
        {
            this.user = user;
        }
        public string Name
        {
            get
            {
                return this.user.Name;
            }
            set
            {
                user.Name = value;
            }
        }

        public bool IsInRole(string role)
        {
            return user.IsInRole(role);
        }

        public string Email
        {
            get
            {
                return user.Email;
            }
            set
            {
                user.Email = value;
            }
        }

        public string Password
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public List<string> Roles
        {
            get
            {
                return user.Roles;
            }
            set
            {
                user.Roles = value;
            }
        }

        #endregion
    }
}
